Everything about Shadow Paging totally explained
In
computer science,
shadow paging is a technique for providing
atomicity and
durability (two of the
ACID properties) in
database systems.
A
page in this context refers to a unit of physical storage (probably on a
hard disk), of the order of
bytes.
Shadow paging is a
copy-on-write technique for avoiding
in-place updates of pages. Instead, when a page is to be modified, a
shadow page is allocated. Since the shadow page has no references (from other pages on disk), it can be modified liberally, without concern for consistency constraints, etc. When the page is ready to become
durable, all pages that referred to the original are updated to refer to the new replacement page instead. Because the page is "activated" only when it's ready, it's
atomic.
If the referring pages must also be updated via shadow paging, this procedure may
recurse many times, becoming quite costly. One solution, employed by the WAFL file system (
Write Anywhere File Layout) is to be lazy about making pages durable (for example write-behind caching). This increases performance significantly by avoiding many writes on hotspots high up in the referential hierarchy (eg: a file system superblock) at the cost of high commit latency.
Write ahead logging is a more popular solution that uses in-place updates.
Shadow paging is similar to the
old master-new master batch processing technique used in mainframe database systems. In these systems, the output of each batch run (possibly a day's work) was written to two separate
disks or other form of storage medium). One was kept for backup, and the other was used as the starting point for the next day's work.
Shadow paging is also similar to
purely functional data structures, in that in-place updates are avoided.
External references
Further Information
Get more info on 'Shadow Paging'.
|
External Link Exchanges
Do you know how hard it is to get a link from a large encyclopaedia? Well we're different and will prove it. To get a link from us just add the following HTML to your site on a relevant page:
<a href="http://shadow_paging.totallyexplained.com">Shadow paging Totally Explained</a>
Then simply click through this link from your web page. Our crawlers will verify your link, extract the title of your web page and instantly add a link back to it. If you like you can remove the words Totally Explained and embed the link in article text.
As long as your link remains in place, we'll keep our link to you right here. Please play fair - our crawlers are watching. Your site must be closely related to this one's topic. Any kind of spamming, dubious practises or removing the link will result in your link from us being dropped and, potentially, your whole site being banned. |